/**
 * 弹窗配置
 * 机构管理 organ-manage
 * 新增 organ-manage-add
 * 编辑 organ-manage-edit
 * 删除 organ-manage-delete
 * 批量删除 organ-manage-deleteBatch
 */
const popConfig = {
  'organ-manage': {
    'organ-manage-add': {
      popTitle: '新增机构',
      popType: 'AddOrgan',
      visible: true,
      popConfig: {
        overflow: 'auto',
        width: '50%'
      }
    },
    'organ-manage-import': {
      popTitle: '导入机构',
      popType: 'AddFile',
      visible: true,
      popConfig: {
        width: '50%',
        hideFooterBtn: true,
        // 上传接口
        upLoadPath: '/energy-carbon/grass-core/dept/upload',
        // 模板下载接口
        downPath: '/energy-carbon/grass-core/loginLog/export'
      }
    },
    'organ-manage-edit': {
      popTitle: '编辑机构',
      popType: 'EditOrgan',
      visible: true,
      popConfig: {
        overflow: 'auto',
        width: '50%'
      }
    },
    'organ-manage-delete': {
      showType: 'confirm',
      confirmHeader: '提示',
      confirmContent: '确认删除XXX的机构信息？',
      splitProp: 'deptName',
      paramsProp: { id: 'id' },
      path: 'organManage.deleteById'
    },
    'organ-manage-deleteBatch': {
      showType: 'confirm',
      dataType: 'multipleList',
      confirmHeader: '提示',
      confirmContent: '确认批量删除XXX机构信息？',
      splitProp: 'deptName',
      paramsProp: { ids: 'id' },
      path: 'organManage.batchDelete'
    }
  }
}

export default {}
export { popConfig }
